package Reflect;

import Reflect.annotation.AutoRunClass;

public class ReflectDemo10 {
    public static void main(String[] args) throws Exception {
        Class cla=Class.forName("Reflect.Person");
        boolean mark=cla.isAnnotationPresent(AutoRunClass.class);
        if (mark){
            System.out.println("有注解");
        }else {
            System.out.println("没有注解");
        }
    }
}
